package com.woniuxy.purchasemanager;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.redis.core.RedisTemplate;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication(scanBasePackages = "com.woniuxy")    //指定扫描子包，不然commons的模块扫描不到
@EnableFeignClients(basePackages = "com.woniuxy.commons.service")
@EnableSwagger2
public class PurchaseManagerApplication {

    public static void main(String[] args) {
        SpringApplication.run(PurchaseManagerApplication.class, args);
    }

}
